package com.zjz.service.impl;


import com.zjz.domain.Book;
import com.zjz.mapper.BookMapper;
import com.zjz.service.BookService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


import java.util.List;

@Service
public class BookServiceImpl implements BookService {
    @Autowired
    BookMapper mapper;


    public List<Book> findAll() {
        List<Book> list = mapper.findAll();
        return list;
    }

    @Override
    public int update(Book book) {
        return mapper.update(book);
    }


}
